// Copyright 2022 jeff.li. and/or its affiliates.


#include <tbir/runtime/container.h>
#include <tbir/runtime/container_private.h>
#include <tbir/runtime/ft_container.h>
#include <tbir/runtime/registry.h>

namespace tbir::runtime {

    /******************************************************************************
     * Iterator container
     *****************************************************************************/
    TBIR_REGISTER_GLOBAL("runtime.Iterator_HasNext").set_body_typed([](Iterator iterator) {
        return iterator.HasNext();
    });
    TBIR_REGISTER_GLOBAL("runtime.Iterator_Next").set_body_typed([](Iterator iterator) {
        return iterator.Next();
    });

}  // namespace tbir::runtime
